/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package config.Models;

import config.ConfigMacros;
import java.util.Map;

/**
 *
 * @author LinhTA
 */
public class Conf_Friend {
    
    public int maxFood;
    public int maxEgg;
    public int dayFood;
    
    public Conf_Friend(Map<String,Object> obj)
    {
        maxFood = Integer.parseInt(obj.get(ConfigMacros.FRIEND_MAXFOOD).toString());
        maxEgg = Integer.parseInt(obj.get(ConfigMacros.FRIEND_MAXEGG).toString());
        dayFood =Integer.parseInt( obj.get(ConfigMacros.FRIEND_DAYFOOD).toString());
    }
}
